<?php /* Smarty version 2.6.18, created on 2016-12-16 16:22:00
         compiled from article/add.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

	<div id="page-wrapper">
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	    <form name="article" method="post" action="<?php echo $this->_tpl_vars['url']; ?>
/insert">
		
			<ul class="list-group">
				<li class="list-group-item">
					<span class="label label-info">文章类别</span>
					  <?php echo $this->_tpl_vars['select']; ?>
 <label for="jz"><input id="jz" type="checkbox" name="jz" <?php echo $this->_tpl_vars['jz']; ?>
 value="1"> 记住选项</label>
				</li>
				<li class="list-group-item">
					<span class="label label-info">文章标题&nbsp;<span class="red_font">*</span></span>
					<input type="text" class="form-control" name="title" size="30" value="<?php echo $this->_tpl_vars['post']['title']; ?>
" maxlength="40">
				</li>

				<li class="list-group-item">
					<span class="label label-info" style="margin-top:25px">文章摘要</span>
					<textarea class="form-control" name="summary" cols="40" rows="4"><?php echo $this->_tpl_vars['post']['summary']; ?>
</textarea>&nbsp;&nbsp;小于100个汉字.
				</li>
			

				<li class="list-group-item">
					<span class="label label-info">文章来源</span>
					<input type="text" class="form-control" name="comefrom" size="25" value="<?php echo $this->_tpl_vars['post']['comefrom']; ?>
" maxlength="25">
				</li>
				<li class="list-group-item">
						<span class="label label-info">展示图片</span>
						<input type="hidden" id="picId" name="picid" value="">
						<img  style="cursor:pointer;"  onclick="showWin('<?php echo $this->_tpl_vars['app']; ?>
/image/open')"  src="<?php echo $this->_tpl_vars['public']; ?>
/images/no_image.gif" alt="图片预览" width=100 height="100" id="pic">		
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button"  class="button"  onclick="showWin('<?php echo $this->_tpl_vars['app']; ?>
/image/open')" value="浏览...">	
				</li>
				<li class="list-group-item">
					<span class="label label-info">关键字&nbsp;&nbsp;&nbsp;<span class="red_font">*</span></span>
					<input type="text" class="form-control" name="keyword" size="25" value="<?php echo $this->_tpl_vars['post']['keyword']; ?>
" maxlength="20">&nbsp;&nbsp;用于文章搜索,多个请用逗号","隔开.
				</li>
				<li class="list-group-item">
					<span class="label label-info">是否推荐</span>
					<input type="radio"  name="recommend"<?php if ($this->_tpl_vars['post']['recommend'] == 1): ?>checked<?php endif; ?>  value="1"> 推荐
					<input type="radio"  name="recommend" <?php if ($this->_tpl_vars['post']['recommend'] == 0): ?>checked<?php endif; ?> value="0"> 不推荐
				</li>
				<li class="list-group-item">
					<span class="label label-info">是否充许评论</span>
					<input type="radio"  name="allow"<?php if ($this->_tpl_vars['post']['allow'] == 1): ?>checked<?php endif; ?>  value="1"> 充许
					<input type="radio"  name="allow" <?php if ($this->_tpl_vars['post']['allow'] == 0): ?>checked<?php endif; ?> value="0"> 不充许
				</li>
			
				<li class="list-group-item" style="margin:0px; padding:0px">
					<textarea class="form-control" cols="80" rows="10" name="content"><?php echo $this->_tpl_vars['post']['content']; ?>
</textarea>
					<?php echo $this->_tpl_vars['ck']; ?>

				</li>
			

				<li class="list-group-item">
			    <button type="submit" class="btn btn-primary">添 加</button>
			    &nbsp;&nbsp;
			    <button type="reset" class="btn btn-primary">重 置</button>
			</li>
			</ul>	
		
     </form>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

